package com.demo.entity.po;

import java.io.Serializable;

import java.util.Date;

import com.demo.annotation.VerifyParam;
import com.fasterxml.jackson.annotation.JsonFormat;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description:
 * @Date:2025-03-11
 * @author：author
*/
public class DeviceInventory implements Serializable {

	/**
	 * 记录id
	 */
	private Integer inventoryId;

	/**
	 * 器材id
	 */
	@VerifyParam(required = true)
	private Integer equipmentId;

	/**
	 * 仓库或实验室名称
	 */
	private String warehouse;

	/**
	 * 具体位置
	 */
	private String storageLocation;

	/**
	 * 当前仓库或实验室的具体位置
	 */
	@VerifyParam(required = true)
	private Integer totalQuantity;

	/**
	 * 可用的数量
	 */
	@VerifyParam(required = true)
	private Integer availableQuantity;

	/**
	 * 器材状态（正常、维修中、已报废
	 */
	private Integer status;

	/**
	 * 最近检查时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date lastCheckDate;

	public void setInventoryId(Integer inventoryId) {
		this.inventoryId = inventoryId;
	}

	public Integer getInventoryId() {
		return this.inventoryId;
	}

	public void setEquipmentId(Integer equipmentId) {
		this.equipmentId = equipmentId;
	}

	public Integer getEquipmentId() {
		return this.equipmentId;
	}

	public void setWarehouse(String warehouse) {
		this.warehouse = warehouse;
	}

	public String getWarehouse() {
		return this.warehouse;
	}

	public void setStorageLocation(String storageLocation) {
		this.storageLocation = storageLocation;
	}

	public String getStorageLocation() {
		return this.storageLocation;
	}

	public void setTotalQuantity(Integer totalQuantity) {
		this.totalQuantity = totalQuantity;
	}

	public Integer getTotalQuantity() {
		return this.totalQuantity;
	}

	public void setAvailableQuantity(Integer availableQuantity) {
		this.availableQuantity = availableQuantity;
	}

	public Integer getAvailableQuantity() {
		return this.availableQuantity;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setLastCheckDate(Date lastCheckDate) {
		this.lastCheckDate = lastCheckDate;
	}

	public Date getLastCheckDate() {
		return this.lastCheckDate;
	}

	@Override
	public String toString() {
		return "记录id:" + inventoryId + ",器材id:" + equipmentId + ",仓库或实验室名称:" + warehouse + ",具体位置:" + storageLocation + ",当前仓库或实验室的具体位置:" + totalQuantity + ",可用的数量:" + availableQuantity + ",器材状态（正常、维修中、已报废:" + status + ",最近检查时间:" + lastCheckDate + "";
	}

}